package designpattern.singleton;

/**
 * @author zhangxin
 * @date 2021/3/1
 */
public class Singleton {

    private Singleton() {
    }

    private static class SingletonHolder {
        private static final Singleton singleton = new Singleton();
    }

    public static final Singleton getInstance() {
        return SingletonHolder.singleton;
    }


}
